function getvipauth(grade){
	zeai.ajax({url:HOST+'/m/my_vip'+zeai.extname,data:{submitok:'ajax_getvipauth',grade:grade}},function(e){var rs=zeai.jsoneval(e);
		if(rs.flag==1){
			str = rs.C;
			str = str.replace(/<br>/g, '，');
			ul.html(str);
			if(zeai.empty(rs.vipC)){
				vipC.parentNode.hide();
			}else{
				vipC.parentNode.show();
				vipC.html(html_decode(rs.vipC));
			}
		}
	});
}
function html_decode(str){           
	str = str.replace(/&amp;/g, '&'); 
	str = str.replace(/&lt;/g, '<');
	str = str.replace(/&gt;/g, '>');
	str = str.replace(/&quot;/g, "'");  
	str = str.replace(/&#039;/g, "'");  
	return str;
}
function morebtn(btnobj,off){
	var H = btnobj.parentNode.scrollHeight;
	if(btnobj.hasClass('off')){
		btnobj.removeClass('off');
		btnobj.addClass('on');
		btnobj.html('收起 &#xe60a;');
		btnobj.parentNode.style.height=H+'px';//auto
	}else{
		btnobj.removeClass('on');
		btnobj.addClass('off');
		btnobj.html('展开更多特权 &#xe60b;');
		btnobj.parentNode.style.height='16.5rem';;//auto
	}
}
function vipFn(that,grade,if2,title,price){
	o('grade').value = grade;
	o('if2').value = if2;
	o('money').value = price;
	o('orderid_title').html(decodeURIComponent(title));
	vipcleartdcls();
	that.class('vipli ed');
	o('grade').value = grade;
	o('if2').value = if2;
	getvipauth(grade);
}
function vipcleartdcls(){
	zeai.listEach('.vipli',function(obj){
		if(obj.hasClass('ed'))obj.class('vipli');
	});
}
function supdes_vip(){backtopFn();}